﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RegistrationStepFive.aspx.cs" Inherits="JoinParty.admin.FlowStep.RegistrationStepFive" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <script src="../../../../Resource/ueditor/ueditor.config.js"></script>
    <script src="../../../../Resource/ueditor/ueditor.all.min.js"></script>
</head>
<body>
    <form id="form1" runat="server">
        <f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server" />
        <f:Panel ID="Panel1" ShowBorder="false" ShowHeader="false" runat="server" AutoScroll="true">
            <Items>
                <f:Form ID="formedit" ShowBorder="false" ShowHeader="false" runat="server" BodyPadding="5px" Title="formedit">
                    <Items>
                        <f:FormRow>
                            <Items>
                                <f:TriggerBoxPicker Label="选择组织" LabelAlign="right" LabelWidth="100px"
                                    runat="server" ID="ppBranch" ShowTrigger1="true" ShowTrigger2="true"
                                    EnableEdit="false" WindinsTitle="选择目标组织"
                                    WindinsHeight="450px" EnableTrigger1PostBack="false"
                                    WindinsWidth="700px" WindinsUrl="../../../Share/Picker/BranchToMemberPicker.aspx"
                                    Trigger1Icon="Clear">
                                </f:TriggerBoxPicker>
                            </Items>
                        </f:FormRow>
                        <f:FormRow>
                            <Items>
                                <f:TextBox ID="txtMeetingAdress" runat="server" Label="会议地点" LabelWidth="100px" LabelAlign="right" ShowRedStar="true" Required="true" RequiredMessage="请填写会议地点"></f:TextBox>
                            </Items>
                        </f:FormRow>
                        <f:FormRow>
                            <Items>
                                <f:DatePicker ID="dtTime" runat="server" Label="会议时间" LabelWidth="100px" LabelAlign="right" ShowRedStar="true" Required="true" RequiredMessage="请选择会议时间"></f:DatePicker>
                                <%--<f:TextBox ID="TextBox1" runat="server" Label="会议时间" LabelWidth="100px" LabelAlign="right" ShowRedStar="true" Required="true" RequiredMessage="请填写摄像机名称"></f:TextBox>--%>
                            </Items>
                        </f:FormRow>
                        <f:FormRow>
                            <Items>
                                <f:TriggerBoxPicker runat="server" ID="ppMeetingHost" EnableTrigger1PostBack="false" ShowTrigger1="true" ShowTrigger2="true" Trigger1Icon="Clear" EnableEdit="false"
                                    WindinsTitle="会议主持人" WindinsHeight="500px" WindinsWidth="750px" WindinsUrl="../../../Share/Picker/MemberSinglePicker.aspx" Label="会议主持人" LabelAlign="right"
                                    ShowRedStar="true" Required="true" LabelWidth="100px">
                                </f:TriggerBoxPicker>
                                <f:TriggerBoxPicker runat="server" ID="ppMeetingNotes" EnableTrigger1PostBack="false" ShowTrigger1="true" ShowTrigger2="true" Trigger1Icon="Clear" EnableEdit="false"
                                    WindinsTitle="会议记录人" WindinsHeight="500px" WindinsWidth="750px" WindinsUrl="../../../Share/Picker/MemberMultiplePicker.aspx" Label="会议记录人" LabelAlign="right"
                                    ShowRedStar="true" Required="true" LabelWidth="100px">
                                </f:TriggerBoxPicker>
                            </Items>
                        </f:FormRow>
                        <f:FormRow>
                            <Items>
                                <f:TextBox ID="txtMeetingTitle" runat="server" Label="会议主题" LabelWidth="100px" LabelAlign="right" ShowRedStar="true" Required="true" RequiredMessage="请填写会议主题"></f:TextBox>
                            </Items>
                        </f:FormRow>
                        <f:FormRow>
                            <Items>
                                <f:TriggerBoxPicker runat="server" ID="ppJoinMember" Label="参会人员名单" LabelWidth="100px" LabelAlign="Right"
                                    WindinsTitle="选择参会人员" WindinsHeight="450px" WindinsWidth="700px" ShowTrigger1="false" ShowEmptyLabel="true" EnableEdit="false"
                                    EmptyText="请选择参会人员" WindinsUrl="../../../Share/Picker/MemberMultiplePicker.aspx" Trigger1Icon="Clear" Required="true" ShowRedStar="true">
                                </f:TriggerBoxPicker>
                            </Items>
                        </f:FormRow>
                        <f:FormRow>
                            <Items>
                                <f:Label ID="lbContent" runat="server" LabelAlign="right" Text="会议内容"></f:Label>
                            </Items>
                        </f:FormRow>
                        <f:FormRow>
                            <Items>
                                <%--                                <f:HtmlEditor ID="heContent" runat="server" Label="会议内容" LabelAlign="right" LabelWidth="100px">
                                </f:HtmlEditor>--%>

                                <f:ContentPanel ID="cpContent" runat="server" ShowBorder="false" ShowHeader="false" Title="baad">
                                    <script type="text/plain" name="editor" id="editor"></script>
                                </f:ContentPanel>
                            </Items>
                        </f:FormRow>
                        <f:FormRow>
                            <Items>
                                <f:Label ID="Label1" runat="server" LabelAlign="right" Text="请示"></f:Label>
                            </Items>
                        </f:FormRow>
                        <f:FormRow>
                            <Items>
                                <%--                                <f:HtmlEditor ID="heRequest" runat="server" Label="请示" LabelAlign="right" LabelWidth="100px">
                                </f:HtmlEditor>--%>

                                <f:ContentPanel ID="cpRequest" runat="server" ShowBorder="false" ShowHeader="false" Title="baad">
                                    <script type="text/plain" name="editorRequest" id="editorRequest"></script>
                                </f:ContentPanel>
                            </Items>
                        </f:FormRow>
                    </Items>
                </f:Form>
            </Items>
            <Toolbars>
                <f:Toolbar ID="Toolbar1" runat="server" Position="Bottom" ToolbarAlign="Center">
                    <Items>
                        <f:Button ID="btnSaveClose" ValidateForms="formedit" Icon="SystemSaveClose" OnClick="btnSaveClose_Click"
                            runat="server" Text="保存并关闭">
                        </f:Button>
                        <f:Button ID="btnSubmit" runat="server" ValidateForms="formedit" CssClass="marginr" OnClick="btnSubmit_Click" Icon="Tick"
                            Text="提交">
                        </f:Button>
                        <f:Button ID="btnClose" Icon="SystemClose" EnablePostBack="false" runat="server"
                            Text="关闭">
                        </f:Button>
                    </Items>
                </f:Toolbar>
            </Toolbars>
        </f:Panel>
    </form>
</body>
</html>
<script>
    var containerClientID = '<%= formedit.ClientID %>';
    var editor1, editor2;
    var config = {
        initialFrameWidth: '98%',
        initialFrameHeight: '400px',
        enableAutoSave: false,
        saveInterval: 1000000,
        elementPathEnabled: false,
        autoHeightEnabled: false,
        autoFloatEnabled: false,
        onready: function () {
        }
    };
    F.ready(function () {
        config.onready = function () {
            // 重新布局外部容器
            doLayout();
            updateEditor1('<%= this.Content%>');
        }
        editor1 = UE.getEditor('editor', config);

        config.onready = function () {
            // 重新布局外部容器
            doLayout();
            updateEditor2('<%= this.RequestContent%>');
        }
        editor2 = UE.getEditor('editorRequest', config);

    });

    // 更新编辑器内容
    function updateEditor1(content) {
        if (editor1 && editor1.isReady) {
            editor1.setContent(content);
        }
    }

    function updateEditor2(content) {
        if (editor2 && editor2.isReady) {
            editor2.setContent(content);
        }
    }

    function doLayout() {
        if ((editor1 && editor1.isReady) && (editor2 && editor2.isReady)) {
            // 重新布局外部容器
            F(containerClientID).doLayout();
        }
    }
</script>
